import 'package:flutter/material.dart';

class ThemeModeProvider with ChangeNotifier {
  ThemeMode _themeMode = ThemeMode.dark;

  // Get the current theme mode
  ThemeMode get themeMode => _themeMode;

  // Set the theme mode and notify listeners
  void setThemeMode(ThemeMode mode) {
    _themeMode = mode;
    notifyListeners();
  }

  // Toggle between light and dark modes (skips system mode)
  void toggleTheme() {
    _themeMode =
        _themeMode == ThemeMode.light ? ThemeMode.dark : ThemeMode.light;
    notifyListeners();
  }

  // Check if dark mode is enabled (regardless of system mode)
  // bool get isDarkMode => _themeMode == ThemeMode.dark;

  // Check if light mode is enabled (regardless of system mode)
//  bool get isLightMode => _themeMode == ThemeMode.light;

  // Check if system mode is enabled
  // bool get isSystemMode => _themeMode == ThemeMode.system;
}
